package total;

import java.util.Scanner;

public class PageLogin {
    public PageLogin(){
    	System.out.println("--------------------------");
    	System.out.println("-        知识管理系统                    -");
    	System.out.println("- 账号：___________________-");
    	System.out.println("- 密码：___________________-");   
    	System.out.println("----------[登陆]-----------");
      	System.out.println("--------------------------");
      
    }
    
    public void start(){
    	System.out.println("请输入账号：");
      	Scanner sc=new Scanner(System.in);
      	String name=sc.next();
      	System.out.println("请输入密码：");
      	Scanner sc1=new Scanner(System.in);
      	String pwd=sc.next();
      	if(loginValidate.valiLogin(name, pwd)){
      		new PageMenu();
      		
      	}else{
      		System.out.println("账号或密码错误！");
      		new PageLogin();
      	}
    }
}
